package com.cookor.poi.modules.phy.entity;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.modules.tenant.entity.TTenant;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

public class TEvaluate extends DataEntity<TEvaluate> {
  private static final long serialVersionUID = 1L;
  
  private Integer tenantId;
  
  private Integer orderId;
  
  private Integer patientId;
  
  private Integer doctorId;
  
  private Integer rankId;
  
  private Integer proRankId;
  
  private String openId;
  
  private String pic;
  
  private String nickName;
  
  private String rankName;
  
  private String proRankName;
  
  private String patientName;
  
  private String doctorName;
  
  private Integer star;
  
  private String content;
  
  private Integer noShow;
  
  private TTenant tenant;
  
  private String tenantName;
  
  public TEvaluate() {}
  
  public TEvaluate(String id) {
    super(id);
  }
  
  @NotNull(message = "租户id不能为空")
  public Integer getTenantId() {
    return this.tenantId;
  }
  
  public void setTenantId(Integer tenantId) {
    this.tenantId = tenantId;
  }
  
  @NotNull(message = "订单id不能为空")
  public Integer getOrderId() {
    return this.orderId;
  }
  
  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }
  
  @NotNull(message = "患者id不能为空")
  public Integer getPatientId() {
    return this.patientId;
  }
  
  public void setPatientId(Integer patientId) {
    this.patientId = patientId;
  }
  
  @NotNull(message = "医生id不能为空")
  public Integer getDoctorId() {
    return this.doctorId;
  }
  
  public void setDoctorId(Integer doctorId) {
    this.doctorId = doctorId;
  }
  
  public Integer getRankId() {
    return this.rankId;
  }
  
  public void setRankId(Integer rankId) {
    this.rankId = rankId;
  }
  
  public Integer getProRankId() {
    return this.proRankId;
  }
  
  public void setProRankId(Integer proRankId) {
    this.proRankId = proRankId;
  }
  
  @Length(min = 0, max = 32, message = "职称名称长度必须介于 0 和 32 之间")
  public String getRankName() {
    return this.rankName;
  }
  
  public void setRankName(String rankName) {
    this.rankName = rankName;
  }
  
  @Length(min = 0, max = 32, message = "专家级别名称长度必须介于 0 和 32 之间")
  public String getProRankName() {
    return this.proRankName;
  }
  
  public void setProRankName(String proRankName) {
    this.proRankName = proRankName;
  }
  
  @Length(min = 0, max = 64, message = "患者姓名长度必须介于 0 和 64 之间")
  public String getPatientName() {
    return this.patientName;
  }
  
  public void setPatientName(String patientName) {
    this.patientName = patientName;
  }
  
  @Length(min = 0, max = 64, message = "医生姓名长度必须介于 0 和 64 之间")
  public String getDoctorName() {
    return this.doctorName;
  }
  
  public void setDoctorName(String doctorName) {
    this.doctorName = doctorName;
  }
  
  @NotNull(message = "星级不能为空")
  public Integer getStar() {
    return this.star;
  }
  
  public void setStar(Integer star) {
    this.star = star;
  }
  
  @Length(min = 0, max = 512, message = "评价内容长度必须介于 0 和 512 之间")
  public String getContent() {
    return this.content;
  }
  
  public void setContent(String content) {
    this.content = content;
  }
  
  @NotNull(message = "匿名不能为空")
  public Integer getNoShow() {
    return this.noShow;
  }
  
  public void setNoShow(Integer noShow) {
    this.noShow = noShow;
  }
  
  public TTenant getTenant() {
    return this.tenant;
  }
  
  public void setTenant(TTenant tenant) {
    this.tenant = tenant;
  }
  
  public String getTenantName() {
    return this.tenantName;
  }
  
  public void setTenantName(String tenantName) {
    this.tenantName = tenantName;
  }
  
  public String getOpenId() {
    return this.openId;
  }
  
  public void setOpenId(String openId) {
    this.openId = openId;
  }
  
  public String getPic() {
    return this.pic;
  }
  
  public void setPic(String pic) {
    this.pic = pic;
  }
  
  public String getNickName() {
    return this.nickName;
  }
  
  public void setNickName(String nickName) {
    this.nickName = nickName;
  }
}
